<?php
/**
 * 创建条码
 * User: lxl
 * Date: 2020/09/05
 */
namespace App\Http\Controllers\Service\Barcode;

use App\Http\Controllers\Controller;
use App\Library\Service\BarcodeService;
use Illuminate\Http\Request;

class BarcodeController extends Controller
{
    /**
     * 创建条码
     * @param Request $request
     */
    public function createBarcode(Request $request)
    {
        $bar_code = trim($request->input('bar_code'));
        $type = trim($request->input('type'));
        BarcodeService::getInstance()->generatorPNG($bar_code, 'customer_user_code', $type);
    }
}
